// @ts-ignore
/* eslint-disable */
import request from "../request/request";

/** addReview POST /api/review/add */
export async function addReviewUsingPost(body, options) {
  return request("/api/review/add", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** deleteReview POST /api/review/delete */
export async function deleteReviewUsingPost(body, options) {
  return request("/api/review/delete", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** editReview POST /api/review/edit */
export async function editReviewUsingPost(body, options) {
  return request("/api/review/edit", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** getReviewVOById GET /api/review/get/vo */
export async function getReviewVoByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params,
  options
) {
  return request("/api/review/get/vo", {
    method: "GET",
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** listReviewByPage POST /api/review/list/page */
export async function listReviewByPageUsingPost(body, options) {
  return request("/api/review/list/page", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** listReviewVOByPage POST /api/review/list/page/vo */
export async function listReviewVoByPageUsingPost(body, options) {
  return request("/api/review/list/page/vo", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** listMyReviewVOByPage POST /api/review/my/list/page/vo */
export async function listMyReviewVoByPageUsingPost(body, options) {
  return request("/api/review/my/list/page/vo", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** updateReview POST /api/review/update */
export async function updateReviewUsingPost(body, options) {
  return request("/api/review/update", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}
